export const deviceInfoCmd = {
  hdc: {
    getDeviceInfo: (SN, param) =>
      `hdc ${SN ? `-t ${SN}` : ''} shell "param get ${param}"`,
    getCPUFreqPolicy: (SN) =>
      `hdc ${SN ? `-t ${SN}` : ''} shell ls /sys/devices/system/cpu/cpufreq`,
    getProcStat: (SN) => `hdc ${SN ? `-t ${SN}` : ''} shell cat /proc/stat`,
    getAffectedCpus: (SN, policy) =>
      `hdc ${SN ? `-t ${SN}` : ''} shell cat /sys/devices/system/cpu/cpufreq/${policy}/affected_cpus`,
    getCpuPolicy: (SN, i) =>
      `hdc ${SN ? `-t ${SN}` : ''} shell ls -al /sys/devices/system/cpu/cpu${i}/cpufreq`,
    getMaxCPUFreq: (SN, policy) =>
      `hdc ${
        SN ? `-t ${SN}` : ''
      } shell  cat /sys/devices/system/cpu/cpufreq/${policy}/cpuinfo_max_freq`,
    getMinCPUFreq: (SN, policy) =>
      `hdc ${
        SN ? `-t ${SN}` : ''
      } shell  cat /sys/devices/system/cpu/cpufreq/${policy}/cpuinfo_min_freq`,
    getGPUMaxFreq: (SN) =>
      `hdc ${SN ? `-t ${SN}` : ''} shell cat /sys/class/devfreq/gpufreq/max_freq`,
    getGPUMinFreq: (SN) =>
      `hdc ${SN ? `-t ${SN}` : ''} shell cat /sys/class/devfreq/gpufreq/min_freq`,
    getCPUCoreNum: (SN) =>
      `hdc ${
        SN ? `-t ${SN}` : ''
      } shell "cat /proc/cpuinfo | grep ^processor | wc -l"`,
    getCPUType: (SN) =>
      `hdc ${
        SN ? `-t ${SN}` : ''
      } shell "cat /sys/class/thermal/thermal_zone7/type"`,
    getIp: (SN, bundle) =>
      `hdc ${SN ? `-t ${SN}` : ''} shell aa test -b ${bundle} -m entry -s unittest /ets/TestRunner/EditorTestRunner -s type get_ip`,
    getIpOld: (SN) =>
      `hdc ${SN ? `-t ${SN}` : ''} shell "ifconfig | grep Bcast"`,
    connectByUsb: (SN) => `hdc ${SN ? `-t ${SN}` : ''} tmode usb`,
    connectByWifi: (SN) => `hdc ${SN ? `-t ${SN}` : ''} tmode port 5555`,
    connectByPort: (SN, Ip) => `hdc ${SN ? `-t ${SN}` : ''} tconn ${Ip}:5555`,
    kill: (SN) => `hdc ${SN ? `-t ${SN}` : ''} kill`,
    restart: (SN) => `hdc ${SN ? `-t ${SN}` : ''} start -r`,
    getSN: (SN) => `hdc -t ${SN} shell param get ohos.boot.sn`,
    openAppStatus: (SN) =>
      `hdc -t ${SN} shell param set persist.sys.suspend_manger_enabled 1`,
    openVerifyCheck: (SN) =>
      `hdc -t ${SN} shell param set persist.bms.ohCert.verify true`,
  },
};
